#include <QMainWindow>
#include <QLayout>
#include <QLineEdit>
#include <QTextEdit>
#include "qtchatclient.h"

class Fenetre : public QMainWindow
{
    Q_OBJECT

public :

    Fenetre(QWidget * parent = 0, Qt::WindowFlags flags = 0);

public slots:

    void createNewServer();
    void connectToServer();
    void disconnectServer();
    void commandeReceiver();
    void resetMessageText();

    void getMessage(const QString &a_msg);
    void getInfo(const QString &a_msg);

private :
    QTextEdit *affichageText;
    QLineEdit *messageText ;
    QtChatClient *user;

};
